import RoomPlanExtension from './room_plan'
import RoomCoreExtension from './room_core'
import RoomStructureExtension from './room_structure'
import RoomFunctionExtension from './room_function'
import RoomTaskExtension from './Misson/base'
import RoomTaskManager from './DetailTask/Manager'
import RoomTaskTransport from './DetailTask/Transport'
import RoomTaskWar from './DetailTask/War'
import RoomTaskOther from './DetailTask/Other'
import StructureTask from './DetailTask/Structure'
import {assignPrototype} from '@/utils'

// 定义好挂载顺序
const plugins = [
                RoomFunctionExtension,
                RoomCoreExtension,
                RoomPlanExtension,
                RoomStructureExtension,
                /* 任务系统3.0 */
                RoomTaskExtension,
                RoomTaskManager,
                RoomTaskTransport,
                RoomTaskWar,
                RoomTaskOther,
                StructureTask
                ]

/**
 * 依次挂载所有的 Room 拓展
*/
export default () => plugins.forEach(plugin => assignPrototype(Room, plugin))